//package cn.nfwx.tv.fragment.download;
//
//import android.view.View;
//
//import org.greenrobot.eventbus.EventBus;
//import org.greenrobot.eventbus.Subscribe;
//import org.greenrobot.eventbus.ThreadMode;
//
//import cn.nfwx.tv.R;
//import cn.nfwx.tv.adapter.DownLoadedAdapter;
//import cn.nfwx.tv.base.BaseFragment;
//import cn.nfwx.tv.controller.DownloadedViewController;
//import cn.nfwx.tv.events.DownLoadedEditEvents;
//import cn.nfwx.tv.events.PlayEvents;
//import p2psvideo.P2PSMgr;
//
///**
// *Create by zb.liu  by 2017/11/07
// */
//public class DownLoadedFragment extends BaseFragment implements DownLoadedAdapter.OnItemClickListener {
//    private DownloadedViewController downloadedViewController;
//    private final static String TAG_LOG = DownLoadedFragment.class.getSimpleName();
//    @Override
//    public View initView() {
//        View view =View.inflate(mContext,R.layout.fragment_down_loaded,null);
//        downloadedViewController=new DownloadedViewController(getActivity(),view);
//        downloadedViewController.setPlayClickLisenter(this);
//        EventBus.getDefault().register(this);
//        return view;
//    }
//
//    @Subscribe(threadMode = ThreadMode.MAIN)
//    public void editEventBus(DownLoadedEditEvents events) {
//        downloadedViewController.setBottomLayoutVisiable(events.isFlag());
//        downloadedViewController.getAdapter().setDelete(events.isFlag());
//        downloadedViewController.getAdapter().getDeleteData().clear();
//        downloadedViewController.getAdapter().notifyDataSetChanged();
//
//    }
//
//
//    @Override
//    public void onDestroyView() {
//        super.onDestroyView();
//        EventBus.getDefault().unregister(this);
//    }
//
//    @Override
//    public void onItemClick(View view, int position, P2PSMgr.P2PSFileInfo item) {
////        VodPlayerActivity.startActivity(getContext(), item.urls,item.vsid,item.name,0);
////        EventBus.getDefault().post(new PlayEvents(item.urls,item.vsid,item.name,0));
//        //getActivity().finish();
//    }
//}
